package com.leqee.wxshop.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.leqee.wxshop.WxshopApp;
import com.leqee.wxshop.service.LocationService;
import com.leqee.wxshop.utils.LogUtils;

/**
 * Created by htj-123 on 2015/7/22.
 */
public class BootReceiver extends BroadcastReceiver {

    private static final String TAG = BootReceiver.class.getSimpleName();
    @Override
    public void onReceive(Context context, Intent intent) {


        if (intent.getAction().equals("com.leqee.wxshop")) {
            LogUtils.d(TAG,"com_==dfdferewewrw-------");
            Intent it = new Intent(context, LocationService.class);
            it.putExtra("id", WxshopApp.getInstance().getId());
            context.startService(it);
        }
    }
}